<%@ include file="/jsp/common/tagLibs.jsp" %>
<DIV class=menu_division>
	<DIV class=menu_container>
		<DIV class=menu_left_shadow></DIV>
		<DIV class=menu_content>
			<DIV class=logo>
				<A href="#" target=_self>
					<IMG height=72 alt=nasarius src="${pageContext.request.contextPath}/images/logo_nasarius.png" width=126 border=0>
				</A>
			</DIV>
			<c:set var="cururl" value="${requestScope['javax.servlet.forward.request_uri']}" />
			<c:set var="pagename" value="${fn:substringAfter(cururl,'demo/')}" />
			<DIV class=top_menu>
				<c:if test="${pagename!='login.html'}">
				<div style="float:right;">
					<a href="${pageContext.request.contextPath}/logout.html">
					<sec:authentication property="principal.username" />&nbsp;&nbsp;Logout</a>
				</div>
				</c:if>
			</DIV>
			<sec:authorize ifAllGranted="ROLE_ADMIN">
			<DIV id=topmenu>
				<c:if test="${pagename!='login.html'}">
					<DIV id=menu style="FLOAT: right">
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/topicdetails/view.html" target=_self <c:if test="${fn:contains(pagename,'topics')}">class="selected"</c:if>>TOPICS SETUP</A>
						</DIV>						
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/factordetails/view.html" target=_self <c:if test="${fn:contains(pagename,'factors')}">class="selected"</c:if>>FACTORS SETUP</A>
						</DIV>					
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/bankdetails/view.html" target=_self <c:if test="${fn:contains(pagename,'bank')}">class="selected"</c:if>>BANK SETUP</A>
						</DIV>
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/surveydetails/view.html" target=_self <c:if test="${fn:contains(pagename,'survey')}">class="selected"</c:if>>SURVEY SETUP</A>
						</DIV>
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/uploadlog/view.html" target=_self <c:if test="${fn:contains(pagename,'upload')}">class="selected"</c:if>>UPLOAD LOG</A>
						</DIV>		
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/userdetails/view.html" target=_self <c:if test="${fn:contains(pagename,'factors')}">class="selected"</c:if>>USER SETUP</A>
						</DIV>			
						<DIV class=end></DIV>
					</DIV>
				</c:if>
		</DIV>
		</sec:authorize>
			<sec:authorize ifAnyGranted="ROLE_LBU,ROLE_CBU">
			<DIV id=topmenu>
				<c:if test="${pagename!='login.html'}">
					<DIV id=menu style="FLOAT: right">
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/uploadCSV/select.html" target=_self <c:if test="${fn:contains(pagename,'upload')}">class="selected"</c:if>>UPLOAD ACTUALS</A>
						</DIV>
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/search/form.html" target=_self <c:if test="${fn:contains(pagename,'search')}">class="selected"</c:if>>SEARCH RESULTS</A>
						</DIV>
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/factorAnalysis/form.html" target=_self <c:if test="${fn:contains(pagename,'search')}">class="selected"</c:if>>FACTOR ANALYSIS</A>
						</DIV>							
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/surveyAnalysis/form.html" target=_self <c:if test="${fn:contains(pagename,'search')}">class="selected"</c:if>>SURVEY ANALYSIS</A>
						</DIV>						
						<DIV>
							<A id=products href="${pageContext.request.contextPath}/communicationlogdetails/view.html" target=_self <c:if test="${fn:contains(pagename,'communication')}">class="selected"</c:if>>COMMUNICATION LOG</A>
						</DIV>	
						<DIV class=end></DIV>
					</DIV>
				</c:if>
		</DIV>
		</sec:authorize>		
		</DIV>
		<DIV class=menu_right_shadow></DIV>
	</DIV>
</DIV>